<template>
  <div
    ref="exhibits16"
    @wheel.stop="handleScroll"
    class="jy-style-height Cultural-box"
    :class="{
      scrollType1: type,
      scrollType2: !type
    }"
    :style="{ 
      'background-image': `url(${publicUrls + 'free/style3/exhibitbg.png' + '?imageView2/3/format/webp'})`,
    }"
  >
   <img class="footer-logo-box" :src="publicUrls + 'free/style3/researchbglogo.png' + '?imageView2/3/format/webp'" alt="">
    <div class="Cultural-heard" :class="{ 'Cultural-heard1': type }">
      <i class="freeIcon" @click="blankHome">&#xe642;</i>
      <span class="Cultural-heard-title">展品图库</span>
      <div class="percentage-text" id="percentage-text">
        <div class="screen">
          <div class="seach-Icon-dot" v-if="isMassage"></div>
          <i class="doorIcon" @click="visible = true" v-if="!store.isMobileType">&#xe666;</i>
        </div>
        <t-popup v-if="!store.isMobileType" content="宫格布局" placement="bottom" showArrow attach="#percentage-text">
          <i class="freeIcon freeIcon-mg" style="margin-left: 22px" v-if="type" @click="type = false">&#xe65a;</i>
          <i class="freeIcon freeIcon-mg" style="margin-left: 22px" v-else @click="type = true">&#xe64d;</i>
        </t-popup>
      </div>
    </div>

    <component
      :is="components"
      color="rgba(50, 43, 37, 1)"
      :scrollSrc="publicUrls + 'free/style3/pen.png'"
      v-if="type ? viewportwidth : viewportheight"
      :byid="type ? 9237 : 9527"
      :width="type ? getScrollWidth : getScrollHeight"
    >
      <!-- 内容 -->
      <template #[dynamicSlotName]>  
        <div class="right-scroll" :class="{ 'right-type': !type, 'right-scroll-min': list.length <= 5 }">
          <div class="is-null" v-if="list.length === 0 && !loading">
            <img :src="publicUrls + 'free/style3/exbitNull.png'" alt="" />
            <span>暂无展品</span>
          </div> 
          <div 
            class="item-parent"
            :class="type ? 'item-parent-nowrap' : 'item-parent-wrap'"
            v-else
            @click="pathInfo(item.moduleId, item.id)"
            v-for="item in list"
            :key="item.id"
          >
            <div class="scroll-item">
              <div class="cover-img">
                <div class="radio1 radio"></div>
                <div class="radio2 radio"></div>
                <div class="radio3 radio"></div>
                <div class="radio4 radio"></div>
                <img
                  class="cover-img-url"
                  :src="$filters.getLinkUrl(item.coverUrl, '?imageView2/3/w/564/h/540/format/webp')"
                  alt=""
                />
              </div>
              <div class="cover-name">
                {{ item.name }} 
              </div> 
            </div>
          </div>
        </div>
      </template>
      <!-- 滚动条 -->
      <template #[dynamicSlotChild]>
        <div class="solidBorder-child1" :class="!type && 'solidBorder-child2'"></div>
      </template>
    </component>

    <t-drawer
      @close="init(2)"
      placement="right"
      :attach="exhibits16"
      v-model:visible="visible"
      show-in-attached-element
    >
      <div class="seach-box" id="seach-box-style3-id">
        <p class="seach-box-title">筛选和搜索</p>
        <div class="seach-items">
          <div class="input-box-left">
            <t-input @enter="seachValue" v-model="parmas.value" placeholder="输入展品名称查找" style="width: 100%">
            </t-input>
          </div>
          <div @click="seachValue" class="button-style">
            <div class="radio1 radio"></div>
            <div class="radio2 radio"></div>
            <div class="radio3 radio"></div>
            <div class="radio4 radio"></div>
            <span>搜索</span>
          </div>
        </div>
        <div class="seach-item">
          <span>单元</span>
          <t-select
            :popupProps="{
              attach: `#seach-box-style3-id`,
            }"
            @change="moduleListChange"
            v-model="parmas.ModuleId"
            placeholder=""
          >
            <t-option v-for="item in datas.moduleList" :key="item.id" :label="item.name" :value="item.id" />
          </t-select>
        </div>
        <div class="seach-item">
          <span>类型</span>
          <t-select
            :popupProps="{
              attach: `#seach-box-style3-id`,
            }"
            @change="select3Change"
            v-model="parmas.typeId"
            placeholder=""
          >
            <t-option v-for="item in datas.select3" :key="item.id" :label="item.text" :value="item.id" />
          </t-select>
        </div>
        <div class="seach-item">
          <span>年代</span>
          <t-cascader
            :popupProps="{
              attach: `#seach-box-style3-id`,
            }"
            v-if="clseaSelcet"
            @change="ageIdChange"
            placeholder=""
            v-model="parmas.ageId"
            :options="datas.select4"
            valueType="full"
            :keys="{
              value: 'id',
              children: 'children',
              label: 'text',
            }"
          />
        </div>
        <div class="seach-item"> 
          <span>单位</span> 
          <t-select 
            :popupProps="{
              attach: `#seach-box-style3-id`,
            }"
            @change="companyChange"
            v-model="parmas.CompanyId"
            placeholder=""
          >
            <t-option v-for="item in datas.company" :key="item.id" :label="item.name" :value="item.id" />
          </t-select>
        </div>
        <div class="seach-item">
          <span>级别</span>
          <t-select
            :popupProps="{
              attach: `#seach-box-style3-id`,
            }"
            @change="select1Change"
            v-model="parmas.levelId"
            placeholder=""
          >
            <t-option v-for="item in datas.select1" :key="item.id" :label="item.text" :value="item.id" />
          </t-select>
        </div>
        <div class="btn-box">
          <div @click="clear" class="btn-box-item1">
            <span>清空</span>
          </div>
          <div @click="seachInit" class="btn-box-item2">
            <span>筛选</span>
          </div>
        </div>
      </div>
    </t-drawer>
  </div>
  <MenuNavigation />
</template>

<script lang="ts">
// @ts-nocheck
export default defineComponent({
  name: 'style1',
});
</script>

<script setup lang="ts">
// @ts-nocheck
import MenuNavigation from '@/freeComponents/menuNavigation/index.vue';
import { publicUrls, filterHTML } from '@/utils/minxin';
import { useRouter, useRoute } from 'vue-router';
import { ref, watch, reactive, nextTick, computed, onActivated, defineComponent } from 'vue';
import { exhibitionData } from '@/api/templates/templates';
import { companysData, modulesData } from '@/api/templates/templates';
import { useProjectStore, commonDataStore } from '@/store';
import { storeToRefs } from 'pinia';
import ScrollBoxCom from '../scrollBox.vue';
import ScrollBoxCom2 from '../scrollBoxUp.vue';
import { treeList } from '@/api/user/user';
import { exhibitShowpiece } from '@/api/templates/templates';

const clseaSelcet = ref(true);
const topShow = ref(false);
const scrollNumber = ref(0);
const heartbeat = ref(0); //页面心跳值
const Scrollwidth = ref();
const scrollheight = ref();
const exhibits16 = ref(null); //父元素挂在ref
const visible = ref(false);
const scrollBox = ref(null);
const percentage = ref(0);
const list = ref([]);
const cascader = ref(true);
const type = ref(true);
const total = ref(0);
const loading = ref(false);
const store = useProjectStore();
const router = useRouter();
const route = useRoute();
const datas = reactive({
  select1: [{ id: -1, text: '全部' }], //级别
  select2: [{ id: 0, text: '全部' }], //来源
  select3: [{ id: -1, text: '全部' }], //类型
  select4: [{ id: 0, text: '全部' }], //年代
  company: [], //单位
  moduleList: [], //单元
});
const parmasList = ref({
  typeId: '',
  ageId: '',
  levelId: '',
  ModuleId: '',
  CompanyId: '',
});
const isMobile = navigator.userAgent.match(
  /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i,
);
const info = ref({});
const previewId = ref(0); //当前选中查看展品id
const InfomoduleId = ref(0);
const selectModuleId = ref(1);
const selecttypeId = ref(-1);
const selectCompanyId = ref(-1);
const parmas = reactive({
  value: '',
  typeId: -1,
  ageId: [0],
  levelId: -1,
  ModuleId: 1,
  CompanyId: -1,
  pageNo: 1,
  pageSize: 300,
});

let viewportwidth = window.innerWidth;
Scrollwidth.value = (viewportwidth / 900) * 569;

let viewportheight = window.innerHeight;
scrollheight.value = (viewportheight / 900) * 632;

const getScrollWidth = computed(() => {
  let widths = (window.innerWidth / 900) * 569;
  return widths;
});

const getScrollHeight = computed(() => {
  let heights = (window.innerHeight / 900) * 632;
  return heights;
});

const isMassage = computed(() => {
  return (
    parmas.value != '' ||
    (parmas.typeId != null && parmas.typeId != -1) ||
    parmas.ageId[0] !== 0 ||
    (parmas.levelId != null && parmas.levelId != -1) ||
    parmas.ModuleId != 1 ||
    parmas.CompanyId != -1
  );
});

const components = computed(() => {
  if (type.value) return ScrollBoxCom;
  else return ScrollBoxCom2;
});

const dynamicSlotName = computed(() => {
  if (type.value) return 'solidBorderExcon';
  else return 'solidBorderCon';
});

const dynamicSlotChild = computed(() => {
  if (type.value) return 'solidBorderExbar';
  else return 'solidBorderEx';
});

const initDetail = async () => {
  try {
    let { data } = await exhibitShowpiece(InfomoduleId.value, previewId.value);
    info.value = data;
    console.log(info.value);
  } catch {}
};
const init = async (type?: number) => {
  try {
    if (loading.value) {
      return;
    }
    loading.value = true;
    // console.log(parmas);
    // let arr = parmas;
    // arr.ageId = arr.ageId[arr.ageId.length - 1];
    let { data } = await exhibitionData(localStorage.getItem('projectId'), {
      value: parmas.value,
      typeId: parmas.typeId,
      ageId: parmas.ageId[parmas.ageId.length - 1],
      levelId: parmas.levelId,
      ModuleId: parmas.ModuleId,
      CompanyId: parmas.CompanyId,
      pageNo: parmas.pageNo,
      pageSize: parmas.pageSize,
    });
    total.value = data.total;

    if (type) {
      list.value = data.data;
    } else {
      list.value = list.value.concat(data.data);
    }
    // console.log(list.value);
    scrollBox.value.scrollLeft = 0;
    topShow.value = false;
    // list.value = [];
    loading.value = false;
  } catch {
    loading.value = false;
  }
};
const closeType = (type: number) => {
  switch (type) {
    case 1:
      parmasList.value.typeId = '';
      parmas.typeId = -1;
      break;
    case 2:
      parmasList.value.ageId = '';
      parmas.ageId = [0];
      break;
    case 3:
      parmasList.value.levelId = '';
      parmas.levelId = -1;
      break;
    case 4:
      parmasList.value.ModuleId = '';
      parmas.ModuleId = 1;
      break;
    default:
      parmasList.value.CompanyId = '';
      parmas.CompanyId = -1;
      break;
  }
  init(2);
};
const emitTop = () => {
  //点击回到列表最左侧
  scrollBox.value.scrollLeft = 0;
  percentage.value = 0;
  topShow.value = false;
};
const preview = (id: number, moduleId: number) => {
  previewId.value = id;
  InfomoduleId.value = moduleId;
  initDetail();
};
const initSelect = async () => {
  //初始化所有下拉选项

  let res2 = await treeList(371999507447877); //类型
  let res3 = await treeList(372051821408325); //年代

  // datas.select2 = res1.data;
  datas.select3 = datas.select3.concat(res2.data);
  datas.select4 = datas.select4.concat(res3.data);
};
const initInfo = async () => {
  let { data } = await companysData(localStorage.getItem('projectId'));
  let DataList = await modulesData(localStorage.getItem('projectId'));
  let res = await treeList(371994471206981); //级别
  datas.select1 = datas.select1.concat(res.data);
  datas.moduleList = datas.moduleList.concat(DataList.data);
  datas.company = datas.company.concat(data);
};

initInfo();
initSelect();
const seachValue = () => {
  parmas.pageNo = 1;
  visible.value = false;
  init(2);
};
const seachInit = () => {
  visible.value = false;
  //   if (selectModuleId.value) {
  //     parmas.ModuleId = selectModuleId.value;
  //   }
  //   if (selecttypeId.value != -1) {
  //     parmas.typeId = selecttypeId.value;
  //   }
  //   if (selectCompanyId.value != -2) {
  //     parmas.CompanyId = selectCompanyId.value;
  //   }
  parmas.pageNo = 1;
  init(1);
};
const moduleListChange = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.ModuleId = context.option.label;
};
const select3Change = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.typeId = context.option.label;
};
const companyChange = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.CompanyId = context.option.label;
};
const select1Change = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.levelId = context.option.label;
};
// 年代
const ageIdChange = (e, context) => {
  //   console.log(context.node.labelnia)
  parmasList.value.ageId = context.node.label;
  //   parmasList.value.levelId = context.option.label;
};

const clear = () => {
  parmas.value = '';
  parmas.typeId = -1;
  parmas.ageId = [0];
  parmas.levelId = -1;
  parmas.ModuleId = 1;
  parmas.CompanyId = -1;
  selectModuleId.value = 1;
  selecttypeId.value = -1;
  selectCompanyId.value = -1;
  visible.value = false;
  parmasList.value.typeId = '';
  parmasList.value.ageId = '';
  parmasList.value.levelId = '';
  parmasList.value.ModuleId = '';
  parmasList.value.CompanyId = '';
  clseaSelcet.value = false;
  nextTick(() => {
    clseaSelcet.value = true;
  });
  init(2);
};
const pathInfo = (moduleId: number, e?: number) => {
  //查看展品详情
  store.exhibitsModuleId = moduleId;
  store.exhibitsShowpieceid = e;
  store.exhibitsInfoShow = true;

  //   router.push({
  //     name: route.meta.loopType ? pathLoop[2] : path[2],
  //     query: {
  //       showpieceid: e,
  //       moduleId: moduleId,
  //     },
  //   });
};
const blankRoute = () => {
  router.replace({ name: route.meta.loopType ? pathLoop[0] : path[0] }); // 替换为你要跳转的新路由路径
};
const handleScroll = (event) => {
  event.preventDefault(); // 阻止默认滚动行为
  const { deltaY } = event;

  // 获取滚动内容的 DOM 元素
  const contentEl = scrollBox.value;

  // 将滚动盒子向前滚动
  contentEl.scrollLeft += deltaY;
  scrollNumber.value = contentEl.scrollLeft;
  if (contentEl.scrollWidth > contentEl.clientWidth) {
    if (
      contentEl.scrollWidth < contentEl.scrollLeft + contentEl.clientWidth + 100 &&
      !loading.value &&
      list.value.length < total.value
    ) {
      parmas.pageNo = parmas.pageNo + 1;
      init();
    }
    nextTick(() => {
      const { scrollLeft, clientWidth, scrollWidth } = scrollBox.value;
      if (scrollLeft > 100) {
        topShow.value = true;
      }
      if (scrollLeft < 100) {
        topShow.value = false;
      }
      const newScrollPercentage = Math.floor((scrollLeft / (scrollWidth - clientWidth)) * 100);
      percentage.value = newScrollPercentage;
    });
  }
};
init();
onActivated(() => {
  // heartbeat.value
  if (heartbeat.value !== store.heartbeatCurrent) {
    scrollBox.value.scrollLeft = 0;
    scrollNumber.value = 0;

    clear();
  } else {
    nextTick(() => {
      if (scrollNumber.value) {
        scrollBox.value.scrollLeft = scrollNumber.value;
      }
    });
  }
  heartbeat.value = store.heartbeatCurrent;
});
const blankHome = () => {
  router.push({ name: route.meta.loopType ? 'exhibitionHome' : 'templateedit' });
};
// import { publicUrls } from '@/utils/minxin';
// import { commonDataStore } from '@/store';
// const commonStore = commonDataStore();
// import { useRouter, useRoute } from 'vue-router';
// const router = useRouter();
// const route = useRoute();
// const blankHome=()=>{
//     router.push({name:route.meta.loopType?'exhibitionHome' : 'templateedit'})
// }
</script>

<style scoped lang="less">
.Cultural-box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
    padding-top: 56px;
    padding-bottom: 40px;
  height: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  :deep(.t-drawer__content-wrapper) {
    z-index: 666;
    width: 470px !important;
  }
  :deep(.t-drawer__footer) {
    display: none;
  }
  :deep(.t-drawer__body) {
    padding: 0px;
    background: #d4cab7;
  }
}

.Cultural-heard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 123px;
  margin-bottom: 48px;
  .freeIcon {
    cursor: pointer;
    font-size: 24px;
    line-height: 24px;
    color: #ECE5D9;
  }
  .Cultural-heard-title {
    font-family: SourceHanSerifCN-Bold;
  font-weight: bold;
font-size: 32px;
color: #ECE5D9;
line-height: 48px;
  }
  .percentage-text {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-family: SourceHanSerifCN-Bold;
    font-size: 24px;
    line-height: 56px;
    text-align: center;
   color: #ECE5D9;
    .doorIcon {
      cursor: pointer;
      font-size: 24px;
      line-height: 24px;
      color: #ECE5D9;
      margin-left: 10px;
    }
    .freeIcon {
         font-size: 24px;
      margin-left: 24px;
    }
    .screen {
        display: flex;
      height: 24px; 
      position: relative;
      .doorIcon{
            font-size: 24px;
      line-height: 24px;
      }
      .seach-Icon-dot {
        position: absolute;
        top: 0;
        right: 0;
        width: 8px; 
        height: 8px;
        background: rgba(255, 0, 0, 1);
        border-radius: 50%;
      }
    }
    :deep(.t-popup) {
      color: #f2f2f0;
    }
    :deep(.t-popup__content) {
      background: #322b25;
    }
    :deep(.t-popup__arrow::before) {
      background: #322b25;
      box-shadow: none;
      margin-left: calc(-8px / 3);
    }
    :deep(.t-popup[data-popper-placement^='bottom'] .t-popup__content--arrow) {
      margin-top: 8px;
    } 
  } 
} 
.Cultural-heard1{
    margin-bottom: 96px;
}
.right-type { 
  display: grid !important; 
  grid-template-columns: repeat(4, 1fr); 
  grid-gap: 0px;
  padding-left: 90px !important;
  padding-right: 0px !important
  // display: flex;
  // flex-wrap: wrap;
  // justify-content: flex-start;;
}
.wap-right-type {
  display: flex !important;
  flex-wrap: wrap;
  padding-right: 0px !important;
  height: 428px !important;
}
.right-scroll {
  display: flex;
  height: auto;
  margin-left: 80px;
  margin-right: 80px; 
  width: 100%;
   min-height: calc(488px + 28px);
}
.right-scroll-min{
  display: flex;
  justify-content: center !important;
  margin: 30px auto;
}
.right-scroll::-webkit-scrollbar {
  display: none;
}
.item-parent-wrap {
  width: 282px;
}
.item-parent-nowrap {
  width: 282px;
}
.item-parent {
  // flex: 1 0 16%;
//   height: 438px;
  margin-right: 24px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.scroll-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 282px;
  height: 300px;
}



.cover-img {
    display: flex;
  position: relative;
  width: 282px;
  height: 260px;
  object-fit: contain;
  margin-bottom: 12px;
 background: #D0C4B7;
 overflow: hidden;
 .cover-img-url{
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s;
 } 
}
 .cover-img:hover{
        .cover-img-url{
             transform: scale(1.2);
        }
    }
.radio {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E1DBCF;
  z-index: 6;
}
.radio1 {
  top: -8px;
  left: -8px;
}
.radio2 {
  top: -8px;
  right: -8px;
}
.radio3 {
  bottom: -8px;
  left: -8px;
}
.radio4 {
  bottom: -8px;
  right: -8px;
}
.cover-name {

  width: 100%; 
 height: 28px;
  padding: 0 16px;

  overflow: hidden; 
  text-overflow: ellipsis;
  white-space: nowrap;  
  font-family: 'SourceMedium';
  font-size: 18px; 
  line-height: 30px;
  
  color: #22151F;
  text-align: center; 
  span{
      text-align: center;
  }
}

.list-item {
  display: flex;
  align-items: center;
  margin-right: 32px;
  margin-bottom: 30px;
  span {
    font-family: PingFang SC;
    font-size: 18px;
    line-height: 28px;
    color: rgba(85, 59, 42, 1);
  }
  .doorIcon {
    cursor: pointer;
    font-size: 16px;
    margin-left: 4px;
    color: rgba(85, 59, 42, 1);
  }
} 
.seach-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 62px 40px;
  background: rgba(212, 202, 183, 1);
}
.seach-box-title {
 font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 22px;
color: #2F1B16;
line-height: 34px;
margin-bottom: 32px;
}
.seach-items {
  position: relative;
  display: flex;
  width: 100%;
height: 40px;
background: #D0C4B7;
border-radius: 4px;
margin-bottom: 24px;
}
.input-box-left {
  width: 100%;
  height: 40px;
  :deep(.t-input__wrap) {
    width: 100%;
    height: 40px;
  }
  :deep(input::placeholder){ 
      font-weight: 400;
font-size: 16px;
color: rgba(47, 27, 22, .38);
line-height: 24px;
  }
  :deep(.t-input) { 
    padding: 8px 12px;
    width: 100%;
    height: 40px;
    background: transparent;
    border: none !important;

    .t-input__inner {
      font-size: 16px;
    }
  }
  :deep(.t-input:hover) {
    box-shadow: none;
    border-color: transparent;
  }
  :deep(.t-input:hover) {
    box-shadow: none;
    border-color: transparent;
  }
  :deep(.t-input--focused) {
    box-shadow: none;
    border-color: transparent;
  }
}
.button-style {
  position: relative;
  overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  cursor: pointer;
  width: 80px;
height: 40px;
background: #623333;
border-radius: 4px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 16px;
color: #E1DBCF;
line-height: 24px;
.radio {
          position: absolute;
          width: 8px;
          height: 8px;
          border-radius: 50%;
          background: #D0C4B7; 
          z-index: 6;
        } 
        .radio1 {
          top: -4px;
          left: -4px; 
        }
        .radio2 {
          top: -4px;
          right: -4px;
        }
        .radio3 {
          bottom: -4px;
          left: -4px;
        }
        .radio4 {
          bottom: -4px;
          right: -4px;
        }
}

.btn-box {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 308px;
  .btn-box-item1 {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
   width: 92px;
height: 48px;
border-radius: 4px;
border: 1px solid #623333;
margin-right: 16px;
    span {
     font-family: PingFangSC, PingFang SC;
font-size: 16px;
color: #623333;
line-height: 24px;
    }
  }
  .btn-box-item2 {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
   flex: 1;
height: 48px;
background: #623333;
border-radius: 4px;  
    span {
      font-family: PingFang SC;
font-size: 16px;
color: #FFFFFF;
line-height: 24px;
    }
  }
}
.seach-item {
  position: relative;
  display: flex;
  justify-content: space-between; 
  align-items: center;
height: 64px;
box-shadow: inset 0px -1px 0px 0px rgba(98, 51, 51, .2);
//   margin-top: 40px;
  span {
    position: absolute;
    left: 0;
    top: 50%;
    height: 32px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    width: 20%;
    font-weight: 400;
font-size: 16px;
color: #2F1B16;
line-height: 24px;
  }
  width: 100%;
  // padding: 20px 0;
  :deep(.t-select__right-icon) {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }
  :deep(.t-input--focused) {
    box-shadow: none !important;
  }
  // :deep(.t-select__wrap){
  //   height: 32px;
  // }
  // :deep(.t-select-input){
  //   height: 32px;
  // }
  :deep(.t-cascader__icon) {
    width: 20px;
    height: 20px;
  }
  :deep(.t-input:hover) {
    border-color: transparent !important;
  }
  :deep(.t-input__inner) {
    padding-left: 20%;
    font-weight: 400;
font-size: 16px;
color: #2F1B16;
line-height: 24px;
    line-height: 28px;
  }
  :deep(.t-select__wrap) {
    background: transparent;
  }
  :deep(.t-select-input) {
    background: transparent;
    .t-input {
      background: transparent;
      border: none;
    }
  }
  :deep(.t-input__inner) {
    height: 32px;
  }

  :deep(.t-input:hover) {
    border-color: transparent;
  }
  :deep(.t-input) {
    height: 32px;
  }
  :deep(.t-select) { 
    .t-input {
      background: transparent; 
      border: none;
    } 
    .t-input.t-input--suffix > .t-input__suffix {
      font-size: 20px;
      color: rgba(50, 43, 37, 1);
    }
  }
}
.is-null { 
  display: flex; 
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  margin-top: 50px;
  margin-left: -110px;
  text-align: center;
  position: fixed;
  left: 52%;
  img{ 
    width: 190px;
    height: 190px;
    object-fit: contain;
  }
  span {
    font-size: 16px;
    line-height: 32px;
    color: rgba(50, 43, 37, .38);
  }
}
.solidBorder-child1 {
  width: 100%;
  height: 4px;
  border-radius: 1.055px;
  opacity: 0.1;
  background: #6c5c4f;
  box-sizing: border-box;
  border-left: 2px solid rgba(81, 81, 81, 1);
  border-right: 2px solid rgba(81, 81, 81, 1);
}
.solidBorder-child2 {
  width: 4px;
  height: 100%;
}
.scrollType1{
    :deep(.unit-exbit-null-remarks-info){
        margin: 0 40px;
        // margin-right: 40px;
        width: auto;
         max-height: auto !important;
    }
    .scroll-item{
        height: calc(488px + 28px);
    }
    .cover-img{
        width: 282px;
height: 440px;
margin-bottom: 20px;
    }
    .cover-name {
 width: 274px;
 height: 56px;
  padding: 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-wrap; 
  font-family: 'SourceMedium';
  font-size: 18px;
  line-height: 28px; 
  text-align: center;
  color: #22151F;
}
:deep(.templatestyle1-scroll-box-tumb){
    
    align-items: center;

}
.item-parent{
    margin-bottom: 0px;
    margin-right: 20px;
}
}
.scrollType2{
:deep(.right-scroll){
padding-left: 120px !important;
}

:deep(.right-type){
    margin-right: 0;
    margin-left: 0;
}
}
:deep(.templatestyle1-scroll-box-tumb){
    display: flex;
    justify-content: center;
img{
    width: 24px;
    height: 24px;
}
}
#seach-box-style3-id{
    :deep(.t-cascader__menu){
        background: #ECE5D9;
        padding-left: 0;
padding-right: 0;
    }
    :deep(.t-cascader__item.t-is-expanded){
        background-color: rgba(136, 120, 107, 0.1) !important;
    }
    :deep(.t-cascader__item:hover){
        background-color: rgba(136, 120, 107, 0.1) !important;
    }
:deep(.t-popup__content){
    background: #ECE5D9;
box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.2);
border-radius: 6px;

}
:deep(.t-select__list){
padding-left: 0;
padding-right: 0; 
}
:deep(.t-select-option){ 
   span{
       margin-left: 20px;
   } 
   
}
:deep(.t-select-option:hover){
       background-color: rgba(136, 120, 107, 0.1) !important;
   }
}
@media screen and (min-width: 2150px)  {
  .scrollType1{
    :deep(.unit-exbit-null-remarks-info){
        margin: 0 52px;
        // margin-right: 40px;
        width: auto;
    }
  
}
}
.footer-logo-box{
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 276px;
  height: 24px;
}
:deep(.t-cascader__item.t-is-expanded){
  color: #88786b !important;
}
:deep(.t-cascader__item.t-is-expanded .t-icon-chevron-right){
  color: #88786b !important;
}
:deep(.unit-exbi-remarks-info-remarks){

}
</style>
